﻿angular.module('resources.myinvoicesProxy', []);
angular.module('resources.myinvoicesProxy').factory('myinvoicesProxy', ['rresource', '$http', 'APPSETTING', function (rresource, $http, APPSETTING) {
    var factory = rresource('myinvoices');

    factory.invoicePaging = function (index, itemCount, filter, successcb, failedcb) {
        var itemspage = (index - 1) * itemCount;
        var filterStr = "$top=" + itemCount + "&$skip=" + itemspage + filter + "&$count=true";
        return factory.odataQuery(filterStr, successcb, failedcb);

    };

    return factory;
}]);